<%@ page language="java" import="java.util.*,com.king.cms.common.*" pageEncoding="utf-8"%> 
 <%
  
    String type = (String)request.getAttribute("type");
     
  %>
<script language="javascript">
    <%if("1".equals(type)){%>
    window.opener.document.forms[0].logonimage.value ='<%=request.getAttribute("fileName")%>';  
    <%}%>
    <%if("2".equals(type)){%>
    window.opener.document.forms[0].topimage.value ='<%=request.getAttribute("fileName")%>';  
    <%}%>
    
     window.close();  
</script>
 